package com.seanchenxi.gwt.wordpress.xmlrpc.service.model.impl;

import java.util.Date;
import java.util.HashMap;

import com.seanchenxi.gwt.wordpress.domain.model.Comment;
import com.seanchenxi.gwt.wordpress.domain.model.CommentStatus;
import com.seanchenxi.gwt.xmlrpc.client.model.impl.BaseModelImpl;

public class CommentImpl extends BaseModelImpl implements Comment {
	
	/**
	 * Generated id
	 */
	private static final long serialVersionUID = -1030912486611998979L;

	public CommentImpl() {
		super();
	}

	public CommentImpl(HashMap<String, Object> properties) {
		super(properties);
	}

	@Override
	public String getAuthor() {
		return get("author");
	}

	@Override
	public String getAuthorEmail() {
		return get("author_email");
	}

	@Override
	public String getAuthorIP() {
		return get("author_ip");
	}

	@Override
	public String getAuthorURL() {
		return get("author_url");
	}

	@Override
	public int getId() {
		return get("comment_id");
	}

	@Override
	public int getParentId() {
		return get("comment_parent");
	}

	@Override
	public String getContent() {
		return get("content");
	}

	@Override
	public Date getDateCreated() {
		return get("dateCreated");
	}

	@Override
	public Date getDateCreatedGMT() {
		return get("date_created_gmt");
	}

	@Override
	public String getLink() {
		return get("link");
	}

	@Override
	public String getParent() {
		return get("parent");
	}

	@Override
	public String getPostId() {
		return get("post_id");
	}

	@Override
	public String getPostTitle() {
		return get("post_title");
	}

	@Override
	public CommentStatus getStatus() {
		return get("status");
	}

	@Override
	public String getUserId() {
		return get("user_id");
	}

	@Override
	public void setAuthor(String author) {
		set("author", author);
	}

	@Override
	public void setAuthorEmail(String authorEmail) {
		set("author_email", authorEmail);
	}

	@Override
	public void setAuthorIP(String authorIp) {
		set("author_ip", authorIp);
	}

	@Override
	public void setAuthorURL(String authorUrl) {
		set("author_url", authorUrl);
	}

	@Override
	public void setId(int commentId) {
		set("comment_id", commentId);
	}

	@Override
	public void setParentId(int commentParent) {
		set("comment_parent", commentParent);
	}

	@Override
	public void setContent(String content) {
		set("content", content);
	}

	@Override
	public void setDateCreated(Date dateCreated) {
		set("dateCreated", dateCreated);
	}

	@Override
	public void setDateCreatedGMT(Date dateCreatedGmt) {
		set("date_created_gmt", dateCreatedGmt);
	}

	@Override
	public void setLink(String link) {
		set("link", link);
	}

	@Override
	public void setParent(String parent) {
		set("parent", parent);
	}

	@Override
	public void setPostId(String postId) {
		set("post_id", postId);
	}

	@Override
	public void setPostTitle(String postTitle) {
		set("post_title", postTitle);
	}

	@Override
	public void setStatus(CommentStatus status) {
		set("status", status);
	}

	@Override
	public void setUserId(String userId) {
		set("user_id", userId);
	}

	@Override
	public String getType() {
		return get("type");
	}

	@Override
	public void setType(String type) {
		set("type", type);
	}
}
